package com.yxw.live_vod_boot.dto;



import com.yxw.live_vod_boot.entity.YxLiveShopPunishEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;



/*** 
*@author Jiaxu.Huang
*@date 2023/12/4 16:42:33
*@update 2023/12/4 16:42:33
**/
@Data
//@EqualsAndHashCode(callSuper = true)
public class YxLiveShopPunishDTO   implements Serializable
{
    private static final long serialVersionUID = 51701679353635L;
    /**
    *违规ID 主键
    */
    @NotNull(message = "违规ID 主键不可为空")
    @ApiModelProperty(value = "违规ID 主键")
    private String Id;
    /**
    *店铺本地ID
    */
    @ApiModelProperty(value = "店铺本地ID")
    private Long liveShopId;
    /**
    *店铺外部ID
    */
    @ApiModelProperty(value = "店铺外部ID")
    private String shopId;
    /**
    *店铺名称
    */
    @ApiModelProperty(value = "店铺名称")
    private String shopName;
    /**
    *直播ID
    */
    @ApiModelProperty(value = "直播ID")
    private String liveId;
    /**
    *商户ID
    */
    @ApiModelProperty(value = "商户ID")
    private String merchantId;
    /**
    *商户名称
    */
    @ApiModelProperty(value = "商户名称")
    private String merchantName;
    /**
    *违规Id
    */
    @ApiModelProperty(value = "违规Id")
    private Integer violationId;
    /**
    *违规类型名称
    */
    @ApiModelProperty(value = "违规类型名称")
    private String violationReson;
    /**
    * 处罚类别:0罚款,1直播流,2直播间
    */
    @ApiModelProperty(value = " 处罚类别:0罚款,1直播流,2直播间")
    private Integer punishType;
    /**
    *处罚时间始
    */
    @ApiModelProperty(value = "处罚时间始")
    private Long punishTimeStart;
    /**
    *处罚时间止
    */
    @ApiModelProperty(value = "处罚时间止")
    private Long punishTimeEnd;
    /**
    * 处罚数量
    */
    @ApiModelProperty(value = " 处罚数量")
    private Integer punishQuantity;
    /**
    * 处罚单位: (处罚类别为0罚款)视频币,(处罚类别为1直播流,中断直播)分钟,(处罚类别为2直播间,禁播)天
    */
    @ApiModelProperty(value = " 处罚单位: (处罚类别为0罚款)视频币,(处罚类别为1直播流,中断直播)分钟,(处罚类别为2直播间,禁播)天")
    private String punishUnit;
    /**
    *创建人ID
    */
    @ApiModelProperty(value = "创建人ID")
    private String createUserId;
    /**
    *创建人名称
    */
    @ApiModelProperty(value = "创建人名称")
    private String createUserName;
    /**
    *创建时间
    */
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
    /**
    *将DTO转换为ENTITY
    */
    public YxLiveShopPunishEntity ConverToEntity()
    {
        YxLiveShopPunishEntity oYxLiveShopPunishEntity = new YxLiveShopPunishEntity ();
        oYxLiveShopPunishEntity.setId(Id) ;
        oYxLiveShopPunishEntity.setLiveShopId(liveShopId) ;
        oYxLiveShopPunishEntity.setShopId(shopId) ;
        oYxLiveShopPunishEntity.setShopName(shopName) ;
        oYxLiveShopPunishEntity.setLiveId(liveId) ;
        oYxLiveShopPunishEntity.setMerchantId(merchantId) ;
        oYxLiveShopPunishEntity.setMerchantName(merchantName) ;
        oYxLiveShopPunishEntity.setViolationId(violationId) ;
        oYxLiveShopPunishEntity.setViolationReson(violationReson) ;
        oYxLiveShopPunishEntity.setPunishType(punishType) ;
        oYxLiveShopPunishEntity.setPunishTimeStart(punishTimeStart) ;
        oYxLiveShopPunishEntity.setPunishTimeEnd(punishTimeEnd) ;
        oYxLiveShopPunishEntity.setPunishQuantity(punishQuantity) ;
        oYxLiveShopPunishEntity.setPunishUnit(punishUnit) ;
        oYxLiveShopPunishEntity.setCreateUserId(createUserId) ;
        oYxLiveShopPunishEntity.setCreateUserName(createUserName) ;
        oYxLiveShopPunishEntity.setCreateTime(createTime) ;
        return oYxLiveShopPunishEntity;
    }
}

